package services

import (
	"genealogy/dao"
	"genealogy/models"
)

func GetAllGenealogy(genealogy map[string]interface{}) (error, []models.Genealogy, int64) {
	err, GenealogyData, total := dao.GetAllGenealogy(genealogy)
	return err, GenealogyData, total
}
func DelGenealogy(id string) error {
	err := dao.DelGenealogy(id)
	return err
}

func UpdateGenealogy(Genealogy models.Genealogy) error {
	err := dao.UpdateGenealogy(Genealogy)
	return err
}

func AddGenealogy(Genealogy models.Genealogy) error {
	err := dao.AddGenealogy(Genealogy)
	return err
}
